<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title></title>
	<include file="Public/header" />
</head>
<body>
<script type="text/javascript">
	var booksInfoEditUrl="{:U('Order/booksInfoCateSave')}";//更新数据
	var getbooksInfoUrl="{:U('Order/get_booksInfoCate')}";
	var booksInfoDelUrl="{:U('Order/booksInfoCateDel')}";
	var booksInfoExamineUrl="{:U('Order/examinebooksInfoCate')}";
	var booksInfoClearUrl="{:U('Order/booksInfoCateClear')}";
	var booksInfoUndoUrl="{:U('Order/booksInfoCateUndo')}";

	var cateId="{:I('id')}";
	var otherInboundCate="{:I('cid')}";
	var manua_id="{$detail['code']}";

	var pushinfoOrderUrl="{:U('Pushsendapi/booksinfoOrderSend')}";//推送接口
	<!-- using('../../../default/js/booksCateInfo.js'); -->
	
	$(function(){
		$(document).on('mouseover','.ss',function(){
			if($(this).attr('attr_val')==1){
				$(this).attr('attr_val',2);
				var index=layer.open({
				  type: 1,
				  shade: false,
				  title: false, //不显示标题
				  closeBtn: 0, //不显示关闭按钮
				  area: ['600px'],
				  content: "<img src="+$(this).attr('src')+" style='width:600px;'/>"
				});
				$(document).on('mouseout','.ss',function(){
					$(this).attr('attr_val',1);
					layer.close(index);
				});
			}
		});

	})
	<!-- function previewPic(val){ -->
		<!-- this.setAttribute(attribute,value) -->
		<!-- layer.open({ -->
		  <!-- type: 1, -->
		  <!-- shade: false, -->
		  <!-- title: false, //不显示标题 -->
		  <!-- content: "<img src="+val.src+" style='width:500px;'/>" -->
		<!-- }); -->
	<!-- } -->
</script>
<script type="text/javascript" src="__PUBLIC__/default/js/order.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/lib/layer/1.9.3/layer.js"></script>

	<table id="booksInfoDatagrid" toolbar="#booksInfo_tb"></table>
	<!-- 添加 -->
	<div id="booksInfoAddDialog" class="easyui-dialog" title="添加" style="width:500px;padding:10px 20px"  closed="true" buttons="#booksInfoAddButtons"  modal="true">
         <form id="booksInfoAddForm" method="post"  enctype="multipart/form-data" novalidate>
			<div class="fitem">
                <label>商品编码</label>
                <input name="goods_no" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
            <div class="fitem">
                <label>商品名称</label>
                <input name="goods_name" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>品牌</label>
                <input name="goods_brand" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>型号</label>
                <input name="goods_marque" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>缩略图</label>
				<input class="easyui-filebox" name="goods_pic" data-options="prompt:'Choose a file...'" >
            </div>
			<div class="fitem">
                <label>商品价格</label>
                <input name="price" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>数量</label>
                <input name="receive_amount" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>税率(%)</label>
                <input name="goods_tax" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>条形码</label>
                <input name="bar_code" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>料号</label>
                <input name="source_no" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>净重</label>
                <input name="net_weight" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>毛重</label>
                <input name="gross_weight" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
         </form>
    </div>
    <div id="booksInfoAddButtons">
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="booksInfoObj.add('{:U('Order/booksInfoCateAdd')}')" style="width:90px">添加</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#booksInfoAddDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /添加 -->
	<!-- 编辑 -->
    <div id="booksInfoEditDialog" class="easyui-dialog" style="width:400px;padding:10px 20px"
            closed="true" buttons="#booksInfoEditButtons"  modal="true">
        <form id="booksInfoEditForm" method="post" enctype="multipart/form-data" novalidate>    
            <input name="id"  type="hidden" />
			<div class="fitem">
                <label>商品编码</label>
                <input name="goods_no" type="text"  class="easyui-textbox" data-options="disabled:true,required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
            <div class="fitem">
                <label>商品名称</label>
                <input name="goods_name" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>品牌</label>
                <input name="goods_brand" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>型号</label>
                <input name="goods_marque" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>缩略图</label>
				<input class="easyui-filebox" name="goods_pic" data-options="prompt:'Choose a file...'" >
            </div>
			<div class="fitem">
                <label>商品价格</label>
                <input name="price" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>数量</label>
                <input name="receive_amount" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>税率(%)</label>
                <input name="goods_tax" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>条形码</label>
                <input name="bar_code" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>料号</label>
                <input name="source_no" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>

			<div class="fitem">
                <label>净重</label>
                <input name="net_weight" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>毛重</label>
                <input name="gross_weight" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
        </form>
    </div>
    <div id="booksInfoEditButtons">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="booksInfoObj.save('{:U('Order/booksInfoCateSave')}')" style="width:90px">更新</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:
    $('#booksInfoEditDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /编辑 -->
    <!-- 搜索栏 -->
    <div id="booksInfo_tb">
        <form id="booksInfoSearchForm" method="post" novalidate>
             <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon icon-all" plain="true" onclick="booksInfoObj.showAll()">全部</a>     
			 商品编号:<input class="easyui-textbox" name="goods_no" style="width:150px;height:30px;">
			 商品名称:<input class="easyui-textbox" name="goods_name" style="width:150px;height:30px;">

			<a href="#" class="easyui-linkbutton searchBar" iconCls="icon-search" style="height:30px;">搜索</a>
        </form>
		<a href="javascript:void(0)" onclick="booksInfoObj.addBar()" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">添加</a>
        <a href="javascript:void(0)" onclick="booksInfoObj.editBar()" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">修改</a>
        <a href="javascript:void(0)" onclick="booksInfoObj.removeBar()" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true">删除</a>
		<a href="javascript:void(0)" onclick="booksInfoObj.reloadBar()" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true">刷新</a>
    </div>
    <!-- /搜索栏 -->
</body>